﻿<?xml version="1.0" encoding="utf-8" ?>
<FieldTypes>
	<FieldType>
		<Field Name="TypeName">PhotoFieldControl</Field>
		<Field Name="ParentType">MultiColumn</Field>
		<Field Name="TypeDisplayName">
			Photo from Picturelibrary
		</Field>
		<Field Name="TypeShortDescription">
			Photo from a Picturelibrary
		</Field>
		<Field Name="UserCreatable">TRUE</Field>
		<Field Name="ShowInListCreate">TRUE</Field>
		<Field Name="ShowInSurveyCreate">FALSE</Field>
		<Field Name="ShowInDocumentLibraryCreate">TRUE</Field>
		<Field Name="ShowInColumnTemplateCreate">TRUE</Field>
		<Field Name="Sortable">TRUE</Field>
		<Field Name="Filterable">TRUE</Field>
		<Field Name="FieldTypeClass">
			PhotoFieldControl.PhotoField, PhotoFieldControl, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3678422e05580325
		</Field>
		<Field Name="FieldEditorUserControl">
			/_controltemplates/PhotoFieldEditor.ascx
		</Field>

		<PropertySchema>
			<Fields>
				<Field Name="UseThisSite" Type="Boolean" Hidden="TRUE">
					<Default>True</Default>
				</Field>
				<Field Name="WebSiteUrl"			 
			 MaxLength="255" DisplaySize="35" Type="Text" Hidden="TRUE">
					<Default></Default>
				</Field>
				<Field Name="ListName"				  
				  MaxLength="255" DisplaySize="35" Type="Text" Hidden="TRUE">
					<Default></Default>
				</Field>
			</Fields>
		</PropertySchema>
		<RenderPattern Name="DisplayPattern">
			<Switch>
				<Expr>
					<Column SubColumnNumber="1"/>
				</Expr>
				<Case Value=""/>
				<Case Value="None"/>
				<Default>
					<HTML><![CDATA[<img src="]]></HTML>
					<Column SubColumnNumber="0" HTMLEncode="False" />
					<HTML>
						<![CDATA["/><br/>]]>
				</HTML>
					<Column SubColumnNumber="1" HTMLEncode="True" />					
				</Default>
			</Switch>
		</RenderPattern>
	</FieldType>
</FieldTypes>
